package GuavaGper;

import GuavaEvent.GuavaEvent;
import Observable.Question;
import com.google.common.eventbus.EventBus;

/**
 * @program: homeWork
 * @description:
 * @author: hezhiqin
 * @create: 2019-10-09 09:18
 */
public class Test {
    public static void main(String[] args) {
        EventBus eventbus = new EventBus();

        Gper gper = Gper.getInstance();
        Question question = new Question();
        question.setUserName("小明");
        question.setContent("我有一个小问题");

        eventbus.register(gper);
        eventbus.post(question);

    }
}
